package com.ms.game.lobby.terminatedaccountlist;

import com.ms.game.lobby.terminatedaccountlist.message.CGetTerminatedAccountListRequest;
import com.xpec.c4.game.utility.GUID;
import com.xpec.c4.service.module.task.TaskAsyncCommand;

public class GetTerminatedAccountListAsync extends TaskAsyncCommand{

	private CGetTerminatedAccountListRequest request;
	
	private GUID playerId;
	
	private GUID sessionId;
	
	@Override
	public void asyncExecute() throws Exception {
		int page = request.getPage();
		int numOfPage = request.getNumOfPage();
		TerminatedAccountList.loadAndSendToClient(sessionId, page, numOfPage);
	}

	@Override
	public void execute() throws Exception {
		
	}

	public CGetTerminatedAccountListRequest getRequest() {
		return request;
	}

	public void setRequest(CGetTerminatedAccountListRequest request) {
		this.request = request;
	}

	public GUID getPlayerId() {
		return playerId;
	}

	public void setPlayerId(GUID playerId) {
		this.playerId = playerId;
	}

	public GUID getSessionId() {
		return sessionId;
	}

	public void setSessionId(GUID sessionId) {
		this.sessionId = sessionId;
	}

}
